Choose IP Adress for Process to use on launch [duplicate]

Posted by user1436026 on Server Fault See other posts from Server Fault or by user1436026
Published on 2013-06-30T13:09:50Z Indexed on 2013/07/02 11:07 UTC
Read the original article Hit count: 239

Filed under:
|
|

This question already has an answer here:

Say my server has the following IP addresses:

123.456.78.0 123.467.79.1 123.456.77.1 123.456.68.0 etc...

Say I want to launch a process, say wget from the command line.

Normally, I would do something like this:

wget http://www.google.com/

Except that I would like to choose the IP address that my server uses to make this request. Is there a way to use wget or launch another command with a choice of one of my own IP addresses, like the following pseudo command:

with-ip 123.456.68.0 wget http://www.google.com/

© Server Fault or respective owner

Related posts about nginx

Related posts about ip